package xyz.zdsoft.course_manage_module.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import xyz.zdsoft.course_manage_module.pojo.MyPage;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 王林
 * @version 1.0
 * @date 2021-07-22 周四
 * @time 14:31
 * @description
 */
@Data
@ApiModel(value = "学生课程信息")
public class CourseInfoVo extends MyPage implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程id")
    private Integer id;

    @ApiModelProperty(value = "课程名称")
    private String courseName;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "教室")
    private String classRome;

    @ApiModelProperty(value = "责任老师姓名")
    private String dutyTeacher;

    @ApiModelProperty(value = "实训老师姓名")
    private String trainTeacher;

    @ApiModelProperty(value = "课程创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date projectDate;

    @ApiModelProperty(value = "签到时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date signInTime;

    @ApiModelProperty(value = "签退时间")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date signOutTime;


}
